package cl.easyRestaurant.business.pedidos;

import javax.ejb.Stateless;

import cl.easyRestaurant.dataAccess.persistence.Cliente;
import cl.easyRestaurant.dataAccess.persistence.ClienteHome;
import cl.easyRestaurant.models.pedidos.ClienteModel;

/**
 * Session Bean implementation class ClientesBusiness
 */
@Stateless
public class ClientesBusiness implements IClientesBusiness {

    @Override
	public ClienteModel GetClienteModel(String idCliente) {
    	
    	ClienteHome clienteHome = new ClienteHome();
		
		Cliente result = clienteHome.findById(idCliente);
		
		ClienteModel cliente = new ClienteModel();
		
		cliente.setIdCliente(result.getIdCli());
		
		cliente.setSalonRestaurant(result.getSalonRestaurant());
		
		return cliente;
		
	}

}
